<extend name="Public/base"/>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>发送短信</h2>
    </div>
    <div class="tab-wrap">
        <div class="tab-content">
            <form action="{:U()}" method="post" class="form-horizontal">
                <!-- 高级 -->
                    <div class="form-item">
                        <label class="item-label">手机号码一行一个</label>
                        <div class="controls">
                            <label class="textarea input-large">
                                <textarea name="mobile"></textarea>
                            </label>
                        </div>
                    </div>
                    <div class="form-item">
                        <label class="item-label">短信内容</label>
                        <div class="controls">
                            <label class="textarea input-large">
                                <textarea name="msgtext"></textarea>
                            </label>
                        </div>
                    </div>
                    <if condition="$err">
                    <div class="form-item">
                        <label class="item-label">这些号码发送错误</label>
                        <div class="controls">
                            <label class="textarea input-large">
                                <textarea>{$err}</textarea>
                            </label>
                        </div>
                    </div>
                    </if>
                <div class="form-item">
                    <button type="submit" id="submit" class="btn submit-btn" target-form="form-horizontal">确 定</button>
                    <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                </div>
            </form>
        </div>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        <present name="info.id">
        Think.setValue("allow_publish", {$info.allow_publish|default=1});
        Think.setValue("check", {$info.check|default=0});
        Think.setValue("model[]", {$info.model|json_encode} || [1]);
        Think.setValue("model_sub[]", {$info.model_sub|json_encode} || [1]);
        Think.setValue("type[]", {$info.type|json_encode} || [2]);
        Think.setValue("display", {$info.display|default=1});
        Think.setValue("reply", {$info.reply|default=0});
        Think.setValue("reply_model[]", {$info.reply_model|json_encode} || [1]);
        </present>
        //导航高亮
        highlight_subnav('{:U('Msg/sendmsg')}');
    </script>
</block>
